

var value = [0, 0, 0]; //数据位置下标
var addressList = null;
Page({

  /**
   * 页面的初始数据
   */
  data: {
    transportValues: ["8:00到9：00", "9:00到10：00", "11:00到12：00","14:00到15：00","任意"],
    transportIndex: 0,
    
  },


  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {
    
  },



  

  saveAddress: function(e) {
    var consignee = e.detail.value.consignee;
    var mobile = e.detail.value.mobile;
    var transportDay = e.detail.value.transportDay;
    var address=e.detail.value.address;


    // console.log(transportDay + "," + provinceName + "," + cityName + "," + countyName + "," + address); //输出该文本 

    var arr = wx.getStorageSync('addressList') || [];
    //console.log("arr,{}", arr);
    addressList = {
      consignee: consignee,
      mobile: mobile,    
      transportDay: transportDay,
      address:address
    }
      arr.push(addressList);
      wx.setStorageSync('addressList', arr);
      wx.navigateBack({
      
    })
  }
})